<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
   <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="Shortcut Icon" href="${ctx}/res/images/logo.png" type="image/x-icon">

  <title>优装宝-家装公司后台</title>

  <!--layui-css-->
  <link rel="stylesheet" href="${ctx}/res/assets/layui/css/layui.css">
  <!--通用css-->
  <link rel="stylesheet" href="${ctx}/res/comCss/comCss.css">
  <!--本页css-->
  <link rel="stylesheet" href="${ctx}/res/ltck/ltck.css">

  <script>

    pageLoading();//页面加载完成前菊花

    function pageLoading(){
      var _PageHeight = document.documentElement.clientHeight,

              _PageWidth = document.documentElement.clientWidth;


      var _LoadingTop = _PageHeight > 40 ? (_PageHeight - 40) / 2 - 40 : 0,

              _LoadingLeft = _PageWidth > 40 ? (_PageWidth - 40) / 2 : 0;


      var _LoadingHtml = '<div id="loadingDiv" style="position:absolute;left:0;width:100%;height:' + _PageHeight + 'px;top:0;background:rgba(0,0,0,.1);z-index: 19891099;"><div style="position: absolute; left: ' + _LoadingLeft + 'px; top:' + _LoadingTop + 'px;"><i class="layui-icon layui-anim layui-anim-rotate layui-anim-loop" style="font-size: 40px; color: #1E9FFF;">&#xe63d;</i></div></div>';


      document.write(_LoadingHtml);

      window.onload = function () {

        var loadingMask = document.getElementById('loadingDiv');
        //loadingMask.parentNode.removeChild(loadingMask);

      };

      document.onreadystatechange = completeLoading;

      //加载状态为complete时移除loading效果

      function completeLoading() {

        if (document.readyState == "complete") {

          var loadingMask = document.getElementById('loadingDiv');

          loadingMask.parentNode.removeChild(loadingMask);

        }

      }
    }

  </script>
</head>
<body>

<button class="layui-btn layui-btn-sm openLtck" data-ltck="${yzbComMerch.id}" data-ltckName="${yzbComMerch.brandName}">${yzbComMerch.brandName}</button>

<div>
	<input id="key" type="text" value="${yzbComMerch.id}"/>
</div>
<!--聊天窗口-->
<div id="ltck" class="chat" style="display: none;">

  <ul class="chat-list" >

  </ul>

  <div class="chat-box">

</div>

</div>
<!-- <div> -->
<!--   <div id="connect-container"> -->
<%--     <input id="radio1" type="radio" name="group1" onclick="updateUrl('/${ctx}/yzbWebsocket');"> --%>
<!--       <label for="radio1">W3C WebSocket</label> -->
<!--     <br> -->
<!--     <input id="radio2" type="radio" name="group1" onclick="updateUrl('/socket/sockjs/myHandler');"> -->
<!--       <label for="radio2">SockJS</label> -->
<!--     <div> -->
<!--       <button id="connect" onclick="connect();">链接</button> -->
<!--       <button id="disconnect" disabled="disabled" onclick="disconnect();">断开</button> -->
<!--     </div> -->
<!--     <div> -->
<!--       <textarea id="message" style="width: 350px" placeholder="输入要发送的消息"></textarea> -->
<!--     </div> -->
<!--     <div> -->
<!--       <button id="echo" onclick="echo();" disabled="disabled">发送消息</button> -->
<!--     </div> -->
<!--   </div> -->
<!--   <div id="console-container"> -->
<!--     <div id="console"></div> -->
<!--   </div> -->
<!-- </div>  -->

<script src="${ctx}/res/comJs/jquery.min.js"></script>
<!--layui-js-->
<script src="${ctx}/res/assets/layui/layui.js"></script>
<!--通用js + html -->
<script src="${ctx}/res/comJs/comHtml.js"></script>
<script src="${ctx}/res/comJs/comJs.js"></script>
<!--本页js-->
 <%-- <script src="${ctx}/res/ltck/webSocket.js"></script>  --%>
<script src="${ctx}/res/ltck/ltck.js"></script>


<!-- <script src="http://cdn.sockjs.org/sockjs-0.3.min.js"></script> -->

</body>
</html>